package com.qj.yantaishan.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qj.yantaishan.domain.CommentAttachment;

/**
 * 评论附件Mapper接口
 * 
 * @author qihe
 * @date 2022-07-22
 */
public interface CommentAttachmentMapper extends  BaseMapper<CommentAttachment>
{
    /**
     * 查询评论附件
     * 
     * @param id 评论附件主键
     * @return 评论附件
     */
    public CommentAttachment selectCommentAttachmentById(Long id);

    /**
     * 查询评论附件列表
     * 
     * @param commentAttachment 评论附件
     * @return 评论附件集合
     */
    public List<CommentAttachment> selectCommentAttachmentList(CommentAttachment commentAttachment);

    /**
     * 新增评论附件
     * 
     * @param commentAttachment 评论附件
     * @return 结果
     */
    public int insertCommentAttachment(CommentAttachment commentAttachment);

    /**
     * 修改评论附件
     * 
     * @param commentAttachment 评论附件
     * @return 结果
     */
    public int updateCommentAttachment(CommentAttachment commentAttachment);

    /**
     * 删除评论附件
     * 
     * @param id 评论附件主键
     * @return 结果
     */
    public int deleteCommentAttachmentById(Long id);

    /**
     * 批量删除评论附件
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommentAttachmentByIds(String[] ids);
}
